<?php

declare(strict_types=1);

use App\Websocket\ChatWebsocket;
use App\Websocket\ImWebsocket;
use App\Websocket\ScoreWebsocket;
use Hyperf\HttpServer\Router\Router;

Router::addServer('live-match-server', function () {
    Router::get('/', ScoreWebsocket::class);
});

Router::addServer('live-chat-server', function () {
    Router::get('/', ChatWebsocket::class);
});

Router::addServer('live-im-server', function () {
    Router::get('/', ImWebsocket::class);
});
